﻿/*
 * ========================================================================
 * Copyright(c) 2008-2010北京高阳金信信息技术有限公司, All Rights Reserved.
 * ========================================================================
 *  问题反馈数据处理
 * 
 * 作者：常晏玮     时间：2010-06-09
 * 版本：V1.0
 * 
 * 修改者：         时间：                
 * 修改说明：
 * ========================================================================
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NBFDAL.SqlMapDAL;
using NBFModel;
using PWMIS.DataMap.Entity;

namespace NBFBLL
{
    public class QuestionFeedbackBLL
    {
        public bool InsertQuestionFeedback(string name,string mail,string mobile,int retype,string mailtype,
            string content,string company,string filename)
        {
            TB_Public_ServiceOnline tps = new TB_Public_ServiceOnline();
            EntityQuery<TB_Public_ServiceOnline> query = new EntityQuery<TB_Public_ServiceOnline>(tps, true);
            tps.name = name;
            tps.mail = mail;
            tps.mobile = mobile;
            tps.retype = retype;
            tps.mailtype = mailtype;
            tps.content = content;
            tps.company = company;
            tps.filename = filename;
            try
            {
                query.Save();
                return true;
            }
            catch
            {
                return false;
            }

        }
    }
}
